import { defineConfig } from 'vitepress'

// https://vitepress.dev/reference/site-config
export default defineConfig({
  base: '/',
  lang: 'zh-CN',
  title: "艺兔的编程博客",
  description: "艺兔的编程知识、教程和开发的相关产品文档",
  cleanUrls: true,
  metaChunk:true,
  lastUpdated: true,
  appearance: 'dark',
  ignoreDeadLinks: true,
  head: [['link', { rel: 'icon', href: '/favicon.ico' }]],
  themeConfig: {
    logo: '/logo.png',
    i18nRouting:false,
    aside: false,
    search: {
      provider: 'local'
    },
    nav: [
      { text: '首页', link: '/' },
      {
        text: '编程教程',
        items: [
          { text: 'HTML5和CSS3入门', link: '/guide/what-is-vitepress'},
          { text: 'Item B', link: '/item-2' },
          { text: 'Item C', link: '/item-3' }
        ]
      },
      {
        text: '产品文档',
        items: [
          { text: '产品文档', link: '/config/asset-handling' },
          { text: 'Item B', link: '/item-2' },
          { text: 'Item C', link: '/item-3' }
        ]
      },
    ],

    sidebar: {
      '/guide/':[
      {
          text: 'HTML5和CSS3课程',
          collapsed: false,
          items: [
            { text: '什么是VitePress?', link: '/guide/what-is-vitepress' },
            { text: '快速开始', link: '/guide/getting-started' }
          ]
        },
        {
          text: '第一章:快速开始',
          collapsed: true,
          items: [
            { text: '什么是VitePress?', link: '/guide/what-is-vitepress2' },
            { text: '快速开始', link: '/guide/getting-started' }
          ]
        },
      ],
      
      '/config/':[
        {
          text: '写作',
          items: [
            { text: '资源处理', link: '../guide/asset-handling' },
          ]
        }
      ],

    },
    socialLinks: [
      { icon: 'gitee', link: 'https://gitee.com/yeetu-com/yeetu-blog' }
    ],

    footer: {
      copyright: 'Copyright © 2025 艺兔YEETU | <a href="https://beian.miit.gov.cn/#/Integrated/index" targrt="_blank">浙ICP备2023015057号-2</a>'
    }
  }
})
